class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable,
         #:registerable,
         :recoverable, #重置
         :rememberable, #记忆
         :trackable, #跟踪登陆的次数／时间戳／ＩＰ地址等
         :validatable,
         :confirmable #注册登陆认证模块

  def find_user_email(email)
    User.find_by_email(email)
  end

end
